// 使用 Mock
var Mock = require('mockjs');

//注册
var data = Mock.mock({ 
	"status": "0000", 
	"message": "接口请求成功",
	data:[
        {
            "id": 1,
            "categoryName": "债权产品",
            "parentId": null,
            "isAuto": false,
            "introduction": "我是简介",
            "images": [{
                "id": 10254,
                "imgUrl": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1589264804299&di=4cce3055fbe0af16d699b5fd58b02fd5&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201805%2F07%2F20180507130258_mmrlv.jpg",
                "categoryId": null,
                "isEnabled": null,
                "groupName": null,
                "createTime": null,
                "createUser": null
                }, {
                    "id": 10308,
                    "imgUrl": "http://cdn.duitang.com/uploads/item/201211/21/20121121100635_yPV3U.jpeg",
                    "categoryId": null,
                    "isEnabled": null,
                    "groupName": null,
                    "createTime": null,
                    "createUser": null
                }],
            "categoryVO": [{
                    "id": 6,
                    "categoryName": "定融策略",
                    "parentId": 1,
                    "isAuto": null,
                    "introduction": "对付对付",
                    "images": [],
                    "categoryVO": null
                }, {
                    "id": 7,
                    "categoryName": "信托计划",
                    "parentId": 1,
                    "isAuto": null,
                    "introduction": null,
                    "images": [],
                    "categoryVO": null
                }, {
                    "id": 8,
                    "categoryName": "现金管理",
                    "parentId": 1,
                    "isAuto": null,
                    "introduction": null,
                    "images": [],
                    "categoryVO": null
                }]
        }, {
            "id": 2,
            "categoryName": "证券产品",
            "parentId": null,
            "isAuto": null,
            "introduction": "就快了",
            "images": [{
                "id": 10104,
                "imgUrl": "http://cdn.duitang.com/uploads/item/201211/21/20121121100635_yPV3U.jpeg",
                "categoryId": null,
                "isEnabled": null,
                "groupName": null,
                "createTime": null,
                "createUser": null
            }],
            "categoryVO": null
        }, {
            "id": 3,
            "categoryName": "股权产品",
            "parentId": null,
            "isAuto": null,
            "introduction": null,
            "images": [],
            "categoryVO": null
        }, {
            "id": 4,
            "categoryName": "房地产",
            "parentId": null,
            "isAuto": null,
            "introduction": null,
            "images": [],
            "categoryVO": null
        }, {
            "id": 5,
            "categoryName": "公募产品",
            "parentId": null,
            "isAuto": null,
            "introduction": null,
            "images": [],
            "categoryVO": [{
                "id": 9,
                "categoryName": "公募组合",
                "parentId": 5,
                "isAuto": true,
                "introduction": null,
                "images": [],
                "categoryVO": null
            }, {
                "id": 10,
                "categoryName": "公募单基",
                "parentId": 5,
                "isAuto": true,
                "introduction": null,
                "images": [],
                "categoryVO": null
            }]
        }],
});

//把生成的假数据当做模块输出
module.exports = data;